<%@page import="com.cn.dao.DepartmentDao"%>
<%@page import="com.cn.entity.Department"%>


<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>北京医院</title>
</head>
<body>
<h4>用户修改</h4>
<form action="DepartmentUpdateAction" method="post">
<table>
<%
int departmentid=0;
String id=request.getParameter("departmentid");
if (id!=null){departmentid=Integer.parseInt(id);}
DepartmentDao ud=new DepartmentDao(); 
Department department=ud.scanOne(departmentid);
%>
<tr>
<td>科室名称</td>
<td><input type="text" name="department.departmentname" value="<%=department.getDepartmentname()%>"></td>
</tr>
<tr>
<td>科室位置</td>
<td><input type="text" name="department.location" value="<%=department.getLocation()%>"></td>
</tr>
<tr>
<td>科室介绍</td>
<td><input type="text" name="department.selfintroduce" value="<%=department.getSelfintroduce()%>"></td>
</tr>





<tr>
<td><input type="hidden" name="department.departmentid"  value="<%=department.getDepartmentid()%>"></td>
<td><input type="submit" value="修改"></td>
</tr>



</table>

</form>
</body>
</html>